﻿using System;

[assembly: log4net.Config.XmlConfigurator(Watch = true)]
namespace Browser
{
    internal class LogHelper
    {
        private static log4net.ILog _loger;

        private static log4net.ILog Loger {
            get{
                return _loger ?? (_loger = log4net.LogManager.GetLogger("RollingLogFileAppender"));
            }
        }

        public static void WriteLog(Exception ex)
        {
            Loger.Error(ex.Message, ex);
        }
        public static void WriteLog(string msg)
        {
            Loger.Error(msg);
        }
    }
}
